BlitzMax for Absolute Beginners by Sloan Kelly

BlitzMax for Absolute Beginners by Sloan Kelly

Author:Sloan Kelly
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Y attribute

R attribute

G attribute

B attribute

Draw() method

In object-oriented terms an attribute is something that describes an object. For example the colour of a pen would be an attribute. In BlitzMax, the keyword Field is used to denote an attribute. A field is like a variable but it can only be accessed from a class instance using the dot (.) operator. The following sample code is correct. It is assumed that star is an instance (object) of the TStar class and that BlitzMax is in graphics mode (using the Graphics keyword).

Local star:TStar = TStar.Create(50, 50, 255, 255,

255)

While Not KeyHit(KEY_ESCAPE)

Cls

star.Draw()

Flip

Wend



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.